package com.bayair.doctor.net.services;

import android.util.ArrayMap;

import com.bayair.doctor.data.bean.IMSignKey;
import com.bayair.doctor.data.bean.ServerListResp;
import com.bayair.doctor.data.bean.LoginResp;
import com.bayair.doctor.data.bean.SetResp;
import com.bayair.doctor.data.bean.Token;
import com.bayair.doctor.data.bean.VerityResp;
import com.bayair.doctor.net.BaseEntity;

import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.POST;

/**
 * Author: tuyrt7
 * Date: 2019/9/29 13:54
 * Description:
 */
public interface Api {


    @POST("api/im/vcode")
    Observable<BaseEntity<VerityResp>> verity(@Body ArrayMap<String,String> params);

    @POST("api/im/login")
    Observable<BaseEntity<LoginResp>> login(@Body ArrayMap<String,String> params);

    @POST("api/im/reflush")
    Observable<BaseEntity<Token>> getToken(@Body ArrayMap<String,String> params);

    @POST("api/im/getsignkey")
    Observable<BaseEntity<IMSignKey>> getSignKey(@Body ArrayMap<String,String> params);

    @POST("api/im/logout")
    Observable<BaseEntity<SetResp>> logout(@Body ArrayMap<String,Object> params);

    @POST("api/im/alwaysreceive")
    Observable<BaseEntity<SetResp>> setReceiveMsg(@Body ArrayMap<String,Object> params);

    @POST("api/im/inquiry")
    Observable<BaseEntity<SetResp>> setInquiry(@Body ArrayMap<String,Object> params);

    @POST("api/im/serverlist")
    Observable<BaseEntity<ServerListResp>> getPatientListInSever(@Body ArrayMap<String,Object> params);
}

